package csc.com.logging;

import org.aspectj.lang.JoinPoint;
import org.springframework.beans.factory.annotation.Autowired;

import csc.com.service.WriteFile;

public class ViewPageLogging {
	private WriteFile writeLog;

	public WriteFile getWriteLog() {
		return writeLog;
	}
	@Autowired
	public void setWriteLog(WriteFile writeLog) {
		this.writeLog = writeLog;
	}

	public void afterAdvice(JoinPoint joinPoint) {
		String content = "Use "+ joinPoint.getSignature().getName() +"() method to get list of users from database"
				+ " and display on user list page";
		writeLog.writeLog(content);
	}
}
